<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $html->charset('UTF8');?>
	<title><?php echo $title_for_layout; ?></title>
	<?php
		echo $html->meta('icon');
		echo $html->css('cake.generic');
		echo $html->css('main.css');
//		echo $scripts_for_layout;
		echo $javascript->link('prototype-1.6.0.3');
		echo $javascript->link('scriptaculous');
		
	?>
</head>
<body>
<div id="container">
	 <div id="header">
    	<div id="headerimg">
	  		<span class="title"><?php 
	  		echo $html->link( 'blog Title' ,'/');
	  		?></span> <span class="slogan"><?php __('blog slogan');?></span>
	    </div>
	    <div id="navi">
	    <?php 
	    $menu->add('navi' ,
	    			array('Home' ,
	    				  $html->url(array('controller'=>'posts','action'=>'index')
	    		         )
	    		  ));
		foreach ($categories as $category) {
			//debug($category);
			$menu->add('navi', array($category['Category']['title'] ,'/category/' . $category['Category']['id']));
		}
	    echo $menu->generate('navi');
	    ?>
	    </div>
	</div>
	<div id="content">
		<?php echo $content_for_layout; ?>
	</div>
	<div id="sidebar">
	</div>
</div>
</body>
</html>

